package com.chilly.other.pattern.template;

/**
 * 发送消息通知
 * Created by Chilly Cui on 2020/12/11.
 */
public class NoticeTemplateTest {
    public static void main(String[] args) {
        NoticeTemplate email = new NoticeEmail("邮件");
        email.send();

        System.out.println("------------------");

        NoticeTemplate sms = new NoticeSms("短信");
        sms.send();
    }
}
